﻿package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.Warning
import com.sgcc.nfc.lock.domain.repository.WarningRepository
import javax.inject.Inject

class GetWarningDetailUseCase @Inject constructor(
    private val repository: WarningRepository
) {
    suspend operator fun invoke(warningId: Long): NetworkResult<Warning> = repository.getWarningDetail(warningId)
}
